//
//  StatuesModel.h
//  微博
//
//  Created by zxy on 2018/12/20.
//  Copyright © 2018 zxy. All rights reserved.
//

#import <Foundation/Foundation.h>
//配图宽度
static CGFloat picWidth = 90;
//配图间距
static CGFloat picMargin = 10;
//九宫格最大列数
static NSInteger maxColum = 3;
NS_ASSUME_NONNULL_BEGIN

@interface UserModel : NSObject
/*用户id*/
@property(nonatomic,copy)NSString *userId;
/*友好显示名称*/
@property(nonatomic,copy)NSString *name;
/*用户头像地址*/
@property(nonatomic,copy)NSString *profile_image_url;
/*用户认证类型 -1:没有认证 0:认证用户 2，3，5:企业认证 220:达人*/
@property(nonatomic,assign)NSInteger verified_type;
/*是否是微博认证用户，即加V用户，true：是，false：否*/
@property(nonatomic,assign)BOOL verified;

@end

@interface StatuesModel : NSObject
/*微博创建日期*/
@property(nonatomic,copy)NSString *created_at;
/*微博id*/
@property(nonatomic,copy)NSString *wbId;
/*微博内容*/
@property(nonatomic,copy)NSString *text;
/*微博来源*/
@property(nonatomic,copy)NSString *source;
/*配图数组-默认是预览图数组，如果需要大图-将thumbnail->large*/
@property(nonatomic,strong)NSArray *pic_urls;
/*用户模型数组*/
@property(nonatomic,strong)UserModel *user;
/*转发数*/
@property(nonatomic,copy)NSString *reposts_count;
/*评论数*/
@property(nonatomic,copy)NSString *comments_count;
/*点赞数*/
@property(nonatomic,copy)NSString *attitudes_count;


/*额外属性*/
/** 微博配图大图 */
@property(nonatomic,strong)NSArray *big_picUrls;

@property(nonatomic,assign)CGFloat cellHeight;

//计算配图视图背景尺寸
@property(nonatomic,assign)CGSize calcPicSize;

//配图视图背景frame
@property(nonatomic,assign)CGRect picBgViewFrame;

/**
 获取微博内容

 @param finished 微博内容block  modelArr:成功后的模型数组  error:错误提示
 */
+(void)getWbDataResult:(void(^)(NSArray *modelArr,NSError *error))finished;


@end

NS_ASSUME_NONNULL_END
